<template>
  <div class="page">
	<div class="layui-fluid">
			<div class="layui-row layui-col-space15">
				<div class="layui-col-md12">
					<div class="layui-card">

						<div class="layui-card-body">
							<div class="layui-form" lay-filter="">
<div class="layui-form-item">
    <label class="layui-form-label">店铺状态:</label>
    <div class="layui-input-block">
      <input type="radio" name="set" value="开启" title="开启" >
      <input type="radio" name="set" value="关闭" title="关闭" checked="">
    </div>
  </div>

<div class="layui-form-item layui-form-text">
    <label class="layui-form-label">关闭原因:</label>
    <div class="layui-input-block">
      <textarea placeholder="请输入您的原因" class="layui-textarea" name="desc"></textarea>
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">微信号:</label>
    <div class="layui-input-block">
      <input type="text" name="weixin" lay-verify="title" autocomplete="off" placeholder="请输入您的微信号" class="layui-input">
    </div>
  </div>

<div class="layui-form-item">
    <label class="layui-form-label">App_ID:</label>
    <div class="layui-input-block">
      <input type="text" name="id" lay-verify="title" autocomplete="off" placeholder="请输入您的ID" class="layui-input">
    </div>
  </div>

<div class="layui-form-item">
    <label class="layui-form-label">App_Secret:</label>
    <div class="layui-input-block">
      <input type="text" name="secret" lay-verify="title" autocomplete="off" placeholder="请输入您的密码" class="layui-input">
    </div>
  </div>

<div class="layui-form-item">
    <label class="layui-form-label">Token:</label>
    <div class="layui-input-block">
      <input type="text" name="token" lay-verify="title" autocomplete="off" placeholder="请输入您的钥匙" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">App_Secret:</label>
    <div class="layui-input-block">
      <input type="text" name="secret" lay-verify="title" autocomplete="off" placeholder="请输入您的密码" class="layui-input">
    </div>
  </div>


			        	<div class="layui-form-item">
										 <label class="layui-form-label">门店名称</label>
									    <div class="layui-input-block" style="width: 190px;">
									        <input type="text"  name="name" placeholder="输入门店名称"   v-model="itemData.name" autocomplete="off" class="layui-input a">
									    </div>	
									</div> 
									<div class="layui-form-item">
										<div class="layui-inline">
										    <label class="layui-form-label">门店图片</label>
										    <div class="layui-input-inline" style="width: 180px;">
											    <div class="layui-upload">
												    <button type="button" class="layui-btn" id="layuiadmin-upload-useradmin">选择文件</button>	
												  </div>
												</div>  
									  </div>
									</div>
							    <div class="layui-form-item">
										<div class="layui-inline">
										    <label class="layui-form-label">图片预览</label>
										    <div class="layui-input-inline" style="width: 180px;">
										        <img id="img" :src="itemData.logoUrl?itemData.logoUrl:require('@/assets/zwyl.jpg')" style="width:100px;height:100px;">
										    </div>										   
									  </div>
									</div>		

								<div class="layui-form-item">
    <label class="layui-form-label">店铺类型</label>
    <div class="layui-input-block" style="width: 180px;">
      <select name="interest" lay-filter="aihao">
        <option value=""></option>
        <option value="0" selected="">个体店</option>
        <option value="1">连锁店总店</option>
        <option value="2">直营连锁店</option>
        <option value="3">加盟连锁店</option>
        <option value="4">虚拟店</option>
      </select>
    </div>
  </div>


									
									  <div class="layui-form-item">
    <div class="layui-input-block">
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">保存</button>
    </div>
  </div>
								
																									 							
									
									<!--<div class="layui-form-item">
										<div class="layui-input-block">
											<button class="layui-btn layui-btn-normal" lay-submit lay-filter="setmyinfo" @click="confirmOk">确认</button>
										</div>
									</div>-->

								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
  </div>
</template>
<script>

export default {	
  name: 'storeset',  
  data () {
    return { 
    	itemData:{      		  
    		logoUrl:"",
    	  activeStatus:'ENABLE',
    	  detailcontent:"",
    	  ranking:'0',
    	  shopId:'',//门店
    	  itemGroupId:'',//组
    	  categoryId:'',//类目
    	}
    }
  },
  mounted(){
	  var _this = this;     
  	window.getdates = this.getdates;  
  },
  methods: {  
	  	getdates:function(data){
      var _this=this;
      this.id=data.id;
      var url="/shop/bapi/v1.9/levels/"+data.id;
      ajaxRequest(url, 'GET', 'json','', function(ret, err){
        _this.itemData=ret.data;             
      })
		},
  },
   updated:function(){
  	var _this=this;
		layui.use(['form', 'layedit', 'laydate'], function(){
      var form = layui.form
    ,layer = layui.layer
    ,layedit = layui.layedit
    ,laydate = layui.laydate;

		});
   },
  
}
</script>
<style>
	#J_imageView img{width:400px;display:block;}
</style>
